home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / etc / gdm / PostSession / Default
Encoding:
Text File  |  2009-04-03  |  339 b   |  23 lines

  1. #!/bin/sh
  2.  
  3. PATH="/usr/bin/X11:/usr/X11R6/bin:/opt/X11R6/bin:$PATH:/bin:/usr/bin"
  4. OLD_IFS=$IFS
  5.  
  6. gdmwhich () {
  7.   COMMAND="$1"
  8.   OUTPUT=
  9.   IFS=:
  10.   for dir in $PATH
  11.   do
  12.     if test -x "$dir/$COMMAND" ; then
  13.       if test "x$OUTPUT" = "x" ; then
  14.         OUTPUT="$dir/$COMMAND"
  15.       fi
  16.     fi
  17.   done
  18.   IFS=$OLD_IFS 
  19.   echo "$OUTPUT"
  20. }
  21.  
  22. exit 0
  23.